<form ng-submit="submit()">
  <legend>New Message</legend>

  <div class="form-group">
    <label for="">Subject:</label>
    <input type="text" class="form-control" id="subject" placeholder="Subject" ng-model="subject">
  </div>

  <div class="form-group">
    <label for="">To:</label>
    <input type="text" class="form-control" id="to" placeholder="somebody@gmail.com" ng-model="to">
  </div>

  <div class="form-group">
    <label for="">CC:</label>
    <input type="text" class="form-control" id="cc" placeholder="other@gmail.com" ng-model="cc">
  </div>

  <div class="form-group">
    <label for="">Message:</label>
    <textarea id="content" cols="160" rows="10" ng-model="message"></textarea>
  </div>
  <button type="submit" class="btn btn-primary">Send</button>
  <button type="submit" class="btn btn-primary" ng-click="backtolist()">Back To List</button>
</form>

<div class="modal fade" id="save-result">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Save Result</h4>
      </div>
      <div class="modal-body">
        "{{subject}}" have sent successfully, Do you want to go back to list or create another new message?
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" ng-click="newMessage()">Another New Message</button>
        <button type="button" class="btn btn-primary" ng-click="backtolist()">Back To List</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->